﻿import QtQuick 2.15

Item {
    width: parent.width

    Image {
        id: personPortrait
        width: parent.width/10
        height: width
        anchors.verticalCenter: parent.verticalCenter
        anchors.left: parent.left
        source: "qrc:/img/defaultPortrait.png"
        anchors.leftMargin: 5
    }

    Rectangle{
        id: personMsgRect
        color: "#92bd6c"
        radius: 10
        anchors.verticalCenter: parent.verticalCenter
        anchors.left: personPortrait.right
        anchors.leftMargin: 5
        Text {
            color: "#ffffff"
            text: ""
            width: parent.width
            height: parent.height
            wrapMode: Text.WrapAnywhere
            leftPadding: 5
            rightPadding: 5
            anchors.verticalCenter: parent.verticalCenter
            horizontalAlignment: Text.AlignHCenter
            verticalAlignment: Text.AlignVCenter
            font.bold: true
            font.family: "Arial"
            font.pointSize: 12
            anchors.horizontalCenter: parent.horizontalCenter
        }
    }


}
